/*
 * JSONSerializable.java
 * 
 * @version 1.0, March 17, 2011
 * CS 2340 Team 10: Cyberdyne Systems
 */
package edu.gatech.oad.cyberdoc.domain;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Defines the required methods to be converted to a JSONObject.
 * 
 * @author John Girata
 * @version 1.0, March 17, 2011
 */
public interface JSONSerializable {

	/**
	 * Converts this object to a JSONObject.
	 * 
	 * @return This object as a JSONObject
	 * @throws JSONException
	 *             If an error occurs while writing this object to a JSONObject
	 */
	JSONObject toJSONObject();
}
